#!/bin/bash -e

function info() {
echo Usage: `basename $0` 'beta_file threads'
exit 1
}

while getopts  ":p:f:" opt; do
	case  $opt  in
		p) out_prefix=$OPTARG;;
		f) suffix=$OPTARG;;
		*) info;;
	esac
done
shift $(($OPTIND - 1))


if [ $# -lt 1 ]; then info; fi

. $var

while true; do
    free -g >> free.txt
    sleep 15
done &
mnt_pid=$!

cv_rf.py $1 test 200 $2

. $cmd_done